import React, {Component} from 'react';
import {StoreProvider} from 'iflux2';
import {
  Form,
  Tabs
} from 'antd';

import OrderBasic from './component/order-basic';
import AppStore from './store';
import OrderOption from './component/order-option';
const TabPane = Tabs.TabPane;

@StoreProvider(AppStore)
export default class OrderSet extends Component{
  componentDidMount() {
    this.props.store.init();
  }
  render() {
    return (
      <div className="order-set">
        <Tabs defaultActiveKey="1" className="pusht">
          <TabPane tab="基本设置" key="1">
            <OrderBasic /> 
          </TabPane>
          <TabPane tab="订单选项设置" key="2">
            <OrderOption />
          </TabPane> 
        </Tabs>
      </div>
    )
  }
}